package com.crk.yiyuanguahao.service;

import com.crk.yiyuanguahao.entity.DoctorAppointment;
import com.crk.yiyuanguahao.util.Page;
import com.crk.yiyuanguahao.util.ResponseResult;

/**
 * @author
 * @description:
 * @date 2020/3/26
 */
public interface DoctorAppointmentService {
    /**
     * 保存预约信息
     * @param doctorAppointment 预约信息
     * @return
     */
    public ResponseResult saveDoctorAppointment(DoctorAppointment doctorAppointment);



    public ResponseResult createDoctorAppointment(DoctorAppointment doctorAppointment);

    /**
     * 删除预约信息
     * @param id
     * @return
     */
    public ResponseResult deleteDoctorAppointment(Integer id);

    /**
     * 查询预约信息
     * @param id
     * @return
     */
    public ResponseResult getDoctorAppointment(Integer id);

    /**
     * 查询预约信息列表
     * @param doctorCode 医生编号
     * @param patientId 用户ID
     * @param startTime 开始时间
     * @param endTime 结束时间
     * @param pageInfo 分页
     * @return
     */
    public ResponseResult queryDoctorAppointmentPage(String doctorCode,Integer patientId
            ,String startTime,String endTime,Page pageInfo);


    /**
     * 查询预约信息列表
     * @param doctorCode 医生编号
     * @param startTime 开始时间
     * @param endTime 结束时间
     * @param pageInfo 分页
     * @return
     */
    public ResponseResult queryMyDoctorAppointmentPage(String doctorCode
            ,String startTime,String endTime,Page pageInfo);

    /**
     * 查询预约信息列表
     * @param startTime 开始时间
     * @param endTime 结束时间
     * @param pageInfo 分页
     * @return
     */
    public ResponseResult querySelfDoctorAppointmentPage(
            String appointmentTime, String appointmentDetailTime,Page pageInfo);


    public ResponseResult queryLastAppointment();
}
